<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/supplier/list">供应方列表</a></li>
    <li class="active">{{ id ? "编辑":"新增"}}供应方</li>
  </ol>
  <form class="form-horizontal" role="form" name="form" ng-submit="save()" novalidate>

    <div class="form-group" ng-class="{'has-error':form.accessName.$invalid}">
      <label class="col-sm-2 control-label">对接人姓名</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="对接人姓名" name="accessName" ng-model="item.accessName" required="required">
      </div>
    </div>
    
    <div class="form-group" ng-class="{'has-error':form.accessMobile.$invalid}">
      <label class="col-sm-2 control-label">对接人手机号</label>
      <div class="col-sm-5">
        <input type="number" class="form-control" placeholder="对接人手机号" name="accessMobile" ng-model="item.accessMobile" required="required">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.accessEmail.$invalid}">
      <label class="col-sm-2 control-label">对接人邮箱</label>
      <div class="col-sm-5">
        <input type="email" class="form-control" placeholder="对接人邮箱" name="accessEmail" ng-model="item.accessEmail" required="required">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.accessCompany.$invalid}">
      <label class="col-sm-2 control-label">对接人公司</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="对接人公司" name="accessCompany" ng-model="item.accessCompany" required="required">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.accessPosition.$invalid}">
      <label class="col-sm-2 control-label">对接人职位</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="对接人职位" name="accessPosition" ng-model="item.accessPosition" required="required">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.supplierAddress.$invalid}">
      <label class="col-sm-2 control-label">供应方地址</label>
      <div class="col-sm-5">
        <input type="text" class="form-control" placeholder="供应方地址" name="supplierAddress" ng-model="item.supplierAddress">
      </div>
    </div>

    <div class="form-group" ng-class="{'has-error':form.remark.$invalid}">
      <label class="col-sm-2 control-label">备注</label>
      <div class="col-sm-5">
        <textarea class="form-control" name="remark" ng-model="item.remark" placeholder="备注"></textarea>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-5">
        <button type="submit" class="btn btn-default">提交</button>
      </div>
    </div>
  </form>
</div>
